package com.service.bean.alarm;

import java.sql.Timestamp;
import java.util.Date;

public class RoadAlarmInfo {
	/**
	 * gps信号id
	 */
	public String signalId;
	/**
	 * 设备号
	 */
	public String gpsNo;
	/**
	 * 车辆id
	 */
	public String EquipmentId;
	/**
	 * 规则ID
	 */
	public String RuleId;
	/**
	 * 报警类型
	 */
	public String AlarmType;
	/**
	 * 报警时间
	 */
	public Date  AlarmTime;
	/**
	 * 报警信息
	 */
	public String AlarmInfo;
	/**
	 * 设备类型
	 */
	public String EquipmentKind;
	/**
	 * 信号序号(报警开始点)
	 */
	public String BeginSignalId;
	/**
	 * 信号序号(报警结束点)
	 */
	public String EndSignalId;
	/**
	 * 处理状态
	 */
	public String HandleStatus;
	/**
	 * 处理时间
	 */
	public Date HandleTime;
	/**
	 * 单位
	 */
	public String CompanyCode;
	/**
	 * 状态
	 */
	public String Status;
	/**
	 * 版本
	 */
	public int Version;
	/**
	 * 添加人
	 */
	public String AddBy;
	/**
	 * 添加时间
	 */
	public Date AddTime; 
	/**
	 * 修改人
	 */
	public String ModBy;
	/**
	 * 修改时间
	 */
	public Date ModTime;
	
	public Object[] getAll(){
		Object[] arrs = new Object[17];
		arrs[0] = "'" + EquipmentId + "'";
		arrs[1] = RuleId == null ? RuleId : "'" + RuleId +"'";
		arrs[2] = AlarmType == null ? AlarmType : "'" + AlarmType +"'";
		arrs[3] = this.AlarmTime == null ? this.AlarmTime : "'" + new Timestamp(this.AlarmTime.getTime()) + "'";
		arrs[4] = AlarmInfo == null ? AlarmInfo : "'" + AlarmInfo + "'";
		arrs[5] = EquipmentKind == null ? EquipmentKind : "'" + EquipmentKind + "'";
		arrs[6] = BeginSignalId == null ? BeginSignalId : "'" + BeginSignalId + "'";
		arrs[7] =  EndSignalId == null ? EndSignalId : "'" + EndSignalId + "'";
		arrs[8] = HandleStatus == null ? HandleStatus : "'" + HandleStatus +"'";
		arrs[9] =  this.HandleTime == null ? this.HandleTime : "'" + new Timestamp(this.HandleTime.getTime()) + "'";
		arrs[10] = "'" + CompanyCode + "'";
		arrs[11] = "'Active'";
		arrs[12] = Version;
		arrs[13] = AddBy == null ? AddBy : "'" + AddBy + "'";
		arrs[14] = this.AddTime == null ? this.AddTime : "'" + new Timestamp(this.AddTime.getTime()) + "'";
		arrs[15] = ModBy == null ? ModBy : "'" + ModBy + "'";
		arrs[16] =  this.ModTime == null ? this.ModTime : "'" + new Timestamp(this.ModTime.getTime()) + "'";
		return arrs;
	}

}
